<html>
<head>
  <title>Evernote Export</title>
  <basefont face="Tahoma" size="2" />
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  <meta name="exporter-version" content="Evernote Windows/249072 (zh-CN); Windows/5.1.2600 Service Pack 3;"/>
  <style>
    body, td {
      font-family: Tahoma;
      font-size: 10pt;
    }
  </style>
</head>
<body>
<a name="422"/>

<div>
<div><div style="background-image:url(http://www.cnblogs.com/del/archive/2010/04/03/images/day_bg.gif);background-repeat: no-repeat no-repeat;box-sizing:border-box;line-height:132%;position:relative;left:-10px;font-size:14px;font-family:Verdana, Arial;background-position-x:100%;background-position-y:0%;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(221, 221, 221);border-right-color:rgb(221, 221, 221);border-bottom-color:rgb(221, 221, 221);border-left-color:rgb(221, 221, 221);border-image:initial;padding-top:20px;padding-right:20px;padding-bottom:20px;padding-left:20px;color:rgb(75, 75, 75);margin:0px;opacity:1;filter:none;background-color:rgb(255, 255, 255);background-origin:padding-box;background-size:auto;background-position:-230px -170px;width:1093px;"><div style="background-repeat: initial initial;box-sizing:border-box;background-color:rgb(239, 239, 239);padding-left:8px;padding-top:3px;padding-bottom:0px;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(204, 204, 204);border-right-color:rgb(204, 204, 204);border-bottom-color:rgb(204, 204, 204);border-left-color:rgb(204, 204, 204);border-image:initial;font-family:Verdana, Arial;font-size:15px;font-weight:bold;margin-bottom:10px;"><h1 style="background-repeat: initial initial;margin-right:0px;margin-left:0px;margin-top:10px;margin-bottom:10px;font-size:14.7px;color:rgb(102, 102, 102);text-align:left;box-sizing:border-box;font-weight:bold;"><a href="http://www.cnblogs.com/del/archive/2010/04/03/1703689.html" shape="rect" style="background-repeat: initial initial;box-sizing:border-box;text-decoration:none;color:rgb(52, 104, 164);font-size:15px;">学 Win32 汇编[3]: 控制台下的几种输出方式</a></h1>
	</div>
	<div style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;"><br clear="none" style="background-repeat: initial initial;box-sizing:border-box;">
在熟悉指令、伪指令和汇编语法的过程中, 首先需要的是输出显示的手段.<br clear="none" style="background-repeat: initial initial;box-sizing:border-box;"><br clear="none" style="background-repeat: initial initial;box-sizing:border-box;">
我刚开始学习时使用的是控制台输出, 最后发现既然是 Win32 汇编还是用 Debug 输出更好.<br clear="none" style="background-repeat: initial initial;box-sizing:border-box;"><br clear="none" style="background-repeat: initial initial;box-sizing:border-box;">

下面是之前尝试出的控制台输出的几种办法:<br clear="none" style="background-repeat: initial initial;box-sizing:border-box;">
1、使用 MASM 提供的 StdOut 函数;<br clear="none" style="background-repeat: initial initial;box-sizing:border-box;">
2、使用系统 API: <br clear="none" style="background-repeat: initial initial;box-sizing:border-box;">
3、使用微软 C 标准库 msvcrt.dll 中的 printf 函数.<br clear="none" style="background-repeat: initial initial;box-sizing:border-box;"><br clear="none" style="background-repeat: initial initial;box-sizing:border-box;">

<b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">使用 MASM 的 StdOut 函数:</b><hr style="background-repeat: initial initial;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:dashed;border-right-style:dashed;border-bottom-style:dashed;border-left-style:dashed;border-top-color:rgb(128, 128, 128);border-right-color:rgb(128, 128, 128);border-bottom-color:rgb(128, 128, 128);border-left-color:rgb(128, 128, 128);border-image:initial;height:2px;box-sizing:border-box;">
<pre style="background-repeat: initial initial;font-family:'Courier New', Verdana;font-size:inherit;color:rgb(85, 85, 85);padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;word-wrap:break-word;box-sizing:border-box;"></pre><pre style="background-repeat: initial initial;font-family:'Courier New', Verdana, Arial;font-size:14px;color:rgb(0, 0, 0);padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;word-wrap:break-word;box-sizing:border-box;"><font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">; Test3_1.asm</font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">
; 测试代码前应先建立一个控制台工程: 文件 -&gt; 新建工程 -&gt; Console App ...</font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>

.<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">386</b></font>
.<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">model</b></font> <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">flat</b></font>, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">stdcall</b></font>

<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">include</b></font><font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;"> masm32.inc</font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">include</b></font><font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;"> kernel32.inc</font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">includelib</b></font><font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;"> masm32.lib</font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">includelib</b></font><font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;"> kernel32.lib</font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>

.<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">data</b></font>
    szText <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">db</b></font> <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">&quot;Hello World!&quot;</font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">0</font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>

.<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">code</b></font>
start:
    <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">invoke</b></font> StdOut, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">addr</b></font> szText
    <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">ret</b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;"> ;ret 是用于子程序返回的指令, 这里用它代替 ExitProcess(在没有生成 Win32 窗口时是可以的)</font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">end</b></font> start
</pre><hr style="background-repeat: initial initial;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:dashed;border-right-style:dashed;border-bottom-style:dashed;border-left-style:dashed;border-top-color:rgb(128, 128, 128);border-right-color:rgb(128, 128, 128);border-bottom-color:rgb(128, 128, 128);border-left-color:rgb(128, 128, 128);border-image:initial;height:2px;box-sizing:border-box;">

<br clear="none" style="background-repeat: initial initial;box-sizing:border-box;">
<b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">使用系统 API 函数:</b><hr style="background-repeat: initial initial;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:dashed;border-right-style:dashed;border-bottom-style:dashed;border-left-style:dashed;border-top-color:rgb(128, 128, 128);border-right-color:rgb(128, 128, 128);border-bottom-color:rgb(128, 128, 128);border-left-color:rgb(128, 128, 128);border-image:initial;height:2px;box-sizing:border-box;">
<pre style="background-repeat: initial initial;font-family:'Courier New', Verdana;font-size:inherit;color:rgb(85, 85, 85);padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;word-wrap:break-word;box-sizing:border-box;"></pre><pre style="background-repeat: initial initial;font-family:'Courier New', Verdana, Arial;font-size:14px;color:rgb(0, 0, 0);padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;word-wrap:break-word;box-sizing:border-box;"><font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">; Test3_2.asm</font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>

.<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">386</b></font>
.<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">model</b></font> <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">flat</b></font>, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">stdcall</b></font>

<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">include</b></font><font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;"> windows.inc</font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">include</b></font><font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;"> kernel32.inc</font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">includelib</b></font><font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;"> kernel32.lib</font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>

.<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">data</b></font>
    szText <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">db</b></font> <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">'Hello World!'</font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">0</font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">
;定义两个 DWORD 类型的变量, 分别是用于输出句柄和字符串长度</font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
.<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">data</b></font>?
    hOut <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">dd</b></font> ?
    len  <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">dd</b></font> ?

.<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">code</b></font>
start:
   <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;"> ; 获取控制台输出设备的句柄, 其返回值会放在 eax 寄存器</font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
    <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">invoke</b></font> GetStdHandle, STD_OUTPUT_HANDLE
   <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;"> ; 把获取到的句柄给变量 hOut </font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
    <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">mov</b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font> hOut, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">eax</b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
   <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;"> ; 通过 lstrlen 函数获取字符串长度, 返回值在 eax                        </font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
    <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">invoke</b></font> lstrlen, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">addr</b></font> szText      
   <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;"> ; 把获取到的字符串长度给变量 len      </font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
    <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">mov</b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font> len, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">eax</b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
   <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;"> ; 输出到控制台, 参数分别是: 句柄、字符串地址、字符串长度; 后面是两个指针暂用不到                           </font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
    <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">invoke</b></font> WriteFile, hOut, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">addr</b></font> szText, len, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">NULL</font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">NULL</font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
    <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">ret</b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">end</b></font> start
<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">
; 另外前面用到的 StdOut 也基本就是这样实现的, 源码在: masm32\m32lib\stdout.asm</font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
</pre><hr style="background-repeat: initial initial;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:dashed;border-right-style:dashed;border-bottom-style:dashed;border-left-style:dashed;border-top-color:rgb(128, 128, 128);border-right-color:rgb(128, 128, 128);border-bottom-color:rgb(128, 128, 128);border-left-color:rgb(128, 128, 128);border-image:initial;height:2px;box-sizing:border-box;">

<br clear="none" style="background-repeat: initial initial;box-sizing:border-box;">
<b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">使用微软 C 标准库中的 printf 函数; msvscrt.inc 把它声明做 crt_printf</b><hr style="background-repeat: initial initial;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:dashed;border-right-style:dashed;border-bottom-style:dashed;border-left-style:dashed;border-top-color:rgb(128, 128, 128);border-right-color:rgb(128, 128, 128);border-bottom-color:rgb(128, 128, 128);border-left-color:rgb(128, 128, 128);border-image:initial;height:2px;box-sizing:border-box;">
<pre style="background-repeat: initial initial;font-family:'Courier New', Verdana;font-size:inherit;color:rgb(85, 85, 85);padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;word-wrap:break-word;box-sizing:border-box;"></pre><pre style="background-repeat: initial initial;font-family:'Courier New', Verdana, Arial;font-size:14px;color:rgb(0, 0, 0);padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;word-wrap:break-word;box-sizing:border-box;"><font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">; Test3_3.asm</font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>

.<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">386</b></font>
.<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">model</b></font> <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">flat</b></font>, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">stdcall</b></font>

<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">include</b></font><font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;"> msvcrt.inc</font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">includelib</b></font><font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;"> msvcrt.lib</font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>

.<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">data</b></font>
    szText <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">db</b></font> <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">'Hello World!'</font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">0</font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>

.<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">code</b></font>
start:
    <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">invoke</b></font> crt_printf, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">addr</b></font> szText
    <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">ret</b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">end</b></font> start
</pre><hr style="background-repeat: initial initial;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:dashed;border-right-style:dashed;border-bottom-style:dashed;border-left-style:dashed;border-top-color:rgb(128, 128, 128);border-right-color:rgb(128, 128, 128);border-bottom-color:rgb(128, 128, 128);border-left-color:rgb(128, 128, 128);border-image:initial;height:2px;box-sizing:border-box;">

<br clear="none" style="background-repeat: initial initial;box-sizing:border-box;">
三种方法相比之下, 应推荐使用 C 函数 crt_printf; 因为它可以方便输出更多数据类型, 如:<hr style="background-repeat: initial initial;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:dashed;border-right-style:dashed;border-bottom-style:dashed;border-left-style:dashed;border-top-color:rgb(128, 128, 128);border-right-color:rgb(128, 128, 128);border-bottom-color:rgb(128, 128, 128);border-left-color:rgb(128, 128, 128);border-image:initial;height:2px;box-sizing:border-box;">
<pre style="background-repeat: initial initial;font-family:'Courier New', Verdana;font-size:inherit;color:rgb(85, 85, 85);padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;word-wrap:break-word;box-sizing:border-box;"></pre><pre style="background-repeat: initial initial;font-family:'Courier New', Verdana, Arial;font-size:14px;color:rgb(0, 0, 0);padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-top:0px;margin-bottom:0px;white-space:pre-wrap;word-wrap:break-word;box-sizing:border-box;"><font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">; Test3_4.asm</font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>

.<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">386</b></font>
.<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">model</b></font> <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">flat</b></font>, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">stdcall</b></font>

<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">include</b></font><font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;"> msvcrt.inc</font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">includelib</b></font><font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;"> msvcrt.lib</font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>

.<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">data</b></font>
    szFmt <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">db</b></font> <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">'EAX=%d; ECX=%d; EDX=%d'</font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">0</font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>

.<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">code</b></font>
start:
    <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">mov</b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font> <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">eax</b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">11</font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
    <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">mov</b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font> <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">ecx</b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">22</font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
    <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">mov</b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font> <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">edx</b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">33</font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
    <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">invoke</b></font> crt_printf, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">addr</b></font> szFmt, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">eax</b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">ecx</b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>, <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">edx</b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
    <font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">ret</b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font>
<font color="#008000" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#FF00FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0000FF" style="background-repeat: initial initial;box-sizing:border-box;"></font><font color="#0066CC" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#FF0000" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;"></b></font><font color="#800080" style="background-repeat: initial initial;box-sizing:border-box;"><b style="background-repeat: initial initial;box-sizing:border-box;font-size:14px;">end</b></font> start</pre></div><div style="clear: both"></div></div></div>
</div></body></html> 